package com.woniu.car.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

import java.util.Date;

/**
 * <p>
 * 商品基础表
 * </p>
 *
 * @author chestnuts
 * @since 2021-06-21
 */
@Data
public class TGoods implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    /**
     * 商品名
     */
    private String goodsName;

    /**
     * 商品编号
     */
    private String goodsNo;

    /**
     * 商品分类id
     */
    private Integer categoryId;

    /**
     * 商品介绍
     */
    private String description;

    /**
     * 商品基础价格
     */
    private Double goodsPrice;

    /**
     * 商品状态 0.可上架，1.不可上架，3.已上架
     */
    private Integer status;

    /**
     * 能否使用优惠券，0.不可以，1.可以
     */
    private Integer isCoupon;

    /**
     * 图片
     */
    private String image;

    /**
     * 最后入库时间
     */
    private String lastAddTime;

    /**
     * 最后入库数量
     */
    private Integer lastAddCount;

    /**
     * 商品重量
     */
    private Double weight;

    /**
     * 库存数量
     */
    private Integer stockCount;

    /**
     * 创建人编号
     */
    private String createNo;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 记录添加时间
     */
    private Date rawAddTime;

    /**
     * 记录更新时间
     */
    private Date rawUpdateTime;


    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsCoupon() {
        return isCoupon;
    }

    public void setIsCoupon(Integer isCoupon) {
        this.isCoupon = isCoupon;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getLastAddTime() {
        return lastAddTime;
    }

    public void setLastAddTime(String lastAddTime) {
        this.lastAddTime = lastAddTime;
    }

    public Integer getLastAddCount() {
        return lastAddCount;
    }

    public void setLastAddCount(Integer lastAddCount) {
        this.lastAddCount = lastAddCount;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Integer getStockCount() {
        return stockCount;
    }

    public void setStockCount(Integer stockCount) {
        this.stockCount = stockCount;
    }

    public String getCreateNo() {
        return createNo;
    }

    public void setCreateNo(String createNo) {
        this.createNo = createNo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Date getRawAddTime() {
        return rawAddTime;
    }

    public void setRawAddTime(Date rawAddTime) {
        this.rawAddTime = rawAddTime;
    }

    public Date getRawUpdateTime() {
        return rawUpdateTime;
    }

    public void setRawUpdateTime(Date rawUpdateTime) {
        this.rawUpdateTime = rawUpdateTime;
    }

    @Override
    public String toString() {
        return "TGoods{" +
        "goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsNo=" + goodsNo +
        ", categoryId=" + categoryId +
        ", description=" + description +
        ", goodsPrice=" + goodsPrice +
        ", status=" + status +
        ", isCoupon=" + isCoupon +
        ", image=" + image +
        ", lastAddTime=" + lastAddTime +
        ", lastAddCount=" + lastAddCount +
        ", weight=" + weight +
        ", stockCount=" + stockCount +
        ", createNo=" + createNo +
        ", createTime=" + createTime +
        ", rawAddTime=" + rawAddTime +
        ", rawUpdateTime=" + rawUpdateTime +
        "}";
    }
}
